package com.hunan.api.catv.entity.enums;

public enum TaskType {

    invitedRecord(1, "导出邀请记录");

    private final Integer code;

    private final String value;

    TaskType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static String getResult(int code) {
        TaskType[] rcs = TaskType.values();
        for (TaskType rc : rcs) {
            if (rc.getCode() == code) {
                return rc.getValue();
            }
        }
        return null;
    }
}
